  <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">Detail Komponen</h4>
      </div>
<div class="modal-body">
					<table class="table table-striped table-bordered table-hover table-condensed">
					<thead>
						<tr>
							<th>No</th>
							<th>Nama Komponen</th>
							<th>Nominal</th>
						</tr>
						</thead>
						<?php
						if(isset($hasil)){
							$no=1;
							$total=0;
							foreach($hasil as $val){
						
						?>
						<tr>
							<td><?php echo $no;?></td>
							<td><?php echo $val['nama_komp'];?></td>
							<td><?php echo number_format($val['nominal'],0,",",".");?></td>
						</tr>
						<?php
						$no++;
						$total+=$val['nominal'];
						}
						}
						?>
						<tr>
							<td colspan="2">Total</td>
							<td><?php echo number_format($total,0,",",".");?></td>
						</tr>

					</table>
				</div>